<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <form action="">
        <input type="text" id="name" placeholder="请输入你的名字">
        <input type="submit">
    </form>

    <script src="https://code.jquery.com/jquery-2.2.4.js"></script>
    <script>
        $(function () {
            var ws = new WebSocket("ws://127.0.0.1:7272");
        })
    </script>
</body>

</html>